package com.baox.agridata.synchronous.controller;

import com.baox.agridata.synchronous.entity.ZsReturns;
import com.baox.agridata.synchronous.result.Result;
import com.baox.agridata.synchronous.service.AsyncZSRETURNSInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * packageName com.baox.agridata.synchronous.controller
 *
 * @author yanshuanglong
 * @version JDK 8
 * @className ReceiveChengDuZsReturnController
 * @date 2025/2/26
 * @description TODO
 */
@RestController
@RequestMapping("/receive")
public class ReceiveChengDuZsReturnController {

    @Autowired
    private AsyncZSRETURNSInfoService asyncZSRETURNSInfoService;

    @RequestMapping(value = "/ChengduZSRETURNS",method = RequestMethod.POST)
    public Result receiveChengDuZSRETURNS(@RequestBody List<ZsReturns> l_list){
        return asyncZSRETURNSInfoService.dealReceiveListZSRETURNS(l_list);
    }
}
